package com.jy.api.payRes;

import com.jy.api.domain.*;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

@Data
public class DiscountPromotionDto{

    private List<DiscountPromotionRes> promotion;

    private long totalElements = 0;

    private int totalPages = 0;

    @Data
    public static class  DiscountPromotionRes {
        private Date addTime=new Date();
        //名字
        private String name;
        private String storeId;
        //折扣类型
        private DiscountType discountType;
        //折扣多少折
        private int discount;
        //减少金额
        private int reduceAmount;
        //时间类型
        private TimeType timeType;
        //开始时间  类型2020-02-04
        private String beginTime;
        //结束时间  类型2020-06-04
        private String endTime;
        //开始小时时间  00：00：00
        private int beginHour;
        //结束小时时间  08：00：00
        private int endHour;
        //周几  "星期一,星期二"
        private String week;

        private PromotionType promotionType;

        private List<DiscountPromotionProduct> promotionProducts;
    }












}
